<template>
  <div class="pan-header-content">
    <span class="pan-title-font" @click="goHome">网盘</span>
    <div class="pan-title-action">
      <slot></slot>
      <pan-user-info />
    </div>
  </div>
</template>

<script>
import PanUserInfo from "../user-info";

export default {
  name: "SimpleHeader",
  components: { PanUserInfo },
  methods: {
    goHome() {
      window.location.href = "/";
    },
  },
};
</script>

<style>
.pan-header-content {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 41;
  position: fixed;
  height: 62px;
  line-height: 62px;
  background: #fff;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  -webkit-transition: background 1s ease;
  -moz-transition: background 1s ease;
  -o-transition: background 1s ease;
  transition: background 1s ease;
  display: flex;
  justify-content: space-between;
  align-content: center;
}

.pan-title-font {
  font-size: 40px;
  font-weight: bolder;
  cursor: pointer;
  color: #f56c6c;
  margin-left: 42px;
}

.pan-title-action {
  margin-right: 42px;
  display: inline-flex;
  align-items: center;
}
</style>
